3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
You use a camera view port structure to get or set information about the view port of a camera. A camera's view port defines the rectangular portion of the view plane that is to be mapped into the area specified by the current draw context. The default settings for a view port describe the entire view plane, where the origin (-1.0, 1.0) is the upper-left corner and the width and height of the plane are both 2.0. A camera view port structure is defined by the TQ3CameraViewPort data type.
typedef struct TQ3CameraViewPort {
TQ3Point2D origin;
float width;
float height;
} TQ3CameraViewPort;
Previous | QD3D Book | Overview | Chapter Contents | Next |